function getFooterWidget(type = "index") {
    const $dom = $(`
        <div class="c-position-f">
            <div class="footer-box">
                <a data-btn="index" href="javascript:">
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-a-chanpinweixuanzhong"></use>
                    </svg>
                    <span>产品</span>
                </a>
                <a  data-btn="my" href="javascript:">
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-a-wodeweixuanzhong"></use>
                    </svg>
                    <span>我的</span>
                </a>
            </div>
        </div>
    `)

    const $indexBtn = $dom.find('[data-btn="index"]');
    const $myBtn = $dom.find('[data-btn="my"]');

    $indexBtn.on("click", () => {
        location.href = "/m/index.html";
    })

    $myBtn.on("click", () => {
        location.href = "/m/my/index.html";
    })

    switch (type) {
        case "index":
            $indexBtn.addClass("curr");
            $indexBtn.find('use').attr("xlink:href","#icon-a-chanpinxuanzhong")
            break;
        case "my":
            $myBtn.addClass("curr");
            $myBtn.find('use').attr("xlink:href","#icon-a-wodexuanzhong")
            break;
    }

    return $dom;

}